<?php
	function get_current_date(){
		$query="SELECT DATEDIFF(CURDATE(),(SELECT SEMESTERSTART FROM sysinfo WHERE ID=1)) AS DiffDate";
		$result=mysql_query($query);
		return $result;
	}
?>